/*
 * Copyright (c) 2010 Network Security Lab (NSL), Department of Electrical
 *                    Engineering, University of Washington
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation;
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Author: He Wu mdzz@uw.edu
 */

/**
 * @file command_def.h
 * @brief Command definitions.
 */

#ifndef COMMAND_DEF_H
#define COMMAND_DEF_H

// command numbers
#define BLUE_TOGGLE       11
#define BLUE_ON           12
#define BLUE_OFF          13
#define RED_TOGGLE        21
#define RED_ON            22
#define RED_OFF           23
#define GREEN_TOGGLE      31
#define GREEN_ON          32
#define GREEN_OFF         33
#define ALL_TOGGLE        41
#define ALL_ON            42
#define ALL_OFF           43
// localization commands
#define ASSIGN_XY         110
#define LOC_DATA          111
#define EST_LOC_REPORT    113
#define LOC_OFF           116
#define ACTUAL_LOC_REPORT 118
#define PROPOGATE_ON      145
#define PROPOGATE_OFF     146
#define LOC_ON            200
#define CENTROID          201
#define WEIGHTEDCENTROID  202
#define GRIDSCORE         203
#define GRADIENT          204
#define WEIGHTED_SCORE    205
#define WEIGHTED_GRADIENT 206
// health data
#define HEALTH_DATA       99
// extra commands
#define RESTART           100
#define CHANGE_MAX_RSSI   101
#define CHANGE_LOCAL_TIMER_INTERVAL 102

// system
#define GPIORED           "/proc/gpio/gpio103"
#define GPIOGREEN         "/proc/gpio/gpio104"
#define GPIOBLUE          "/proc/gpio/gpio105"
#define GPIO_CONTROL      "/proc/gpio/GPCTL"

#endif
